import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import http from './common/request.js'
import uView from 'uview-ui'
Vue.use(uView)


Vue.config.productionTip = false
App.mpType = 'app'

Vue.prototype.$http = http;
const app = new Vue({
	...App
})

app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import http from './common/request.js'
import uView from 'uview-ui'
Vue.use(uView)

export function createApp() {
	const app = createSSRApp(App)

	app.config.globalProperties.$http = http
	
	return {
		app
	}
}
// #endif